//---------------------------------------------------------------------------

#ifndef DPRelClientesH
#define DPRelClientesH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DialPad.h"
#include "PHDS.h"
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include "PHCombo.h"
#include "PHEdit.h"
#include "PHLabel.h"
#include "PHGridEd.h"
#include "PHEtiqueta.h"
#include "stdm.h"
#include "RLRelCli.h"
#include <Grids.hpp>
#include "PHCheck.h"
#include "Word_2K_SRVR.h"
#include <OleServer.hpp>
#include <Dialogs.hpp>
#include <Graphics.hpp>
#include "DIALPAD.h"
//---------------------------------------------------------------------------
class TDPRelClientes1 : public TDiPad
{
__published:	// IDE-managed Components
 PHLabel *PHLabel1;
 PHComboBox *PHComboBox1;
 PHLabel *PHLabel2;
 PHEdit *PHEdit1;
 PHDataSource *DSRelCli;
 PHGridEdit *PHGridEdit1;
 TGroupBox *GroupBox1;
 TBitBtn *BtnConfirma;
 TBitBtn *btnCancelar;
 TBitBtn *BtnRelatorio;
 TBitBtn *BtnGerarEtiquetas;
 TGroupBox *GroupBox2;
 TBitBtn *BitBtn4;
 TGroupBox *GroupBox3;
 TLabel *Label1;
 PHCheckBox *CheckReg;
 TWordApplication *WApp1;
 TWordDocument *WDoc1;
 TOpenDialog *OpenDlg1;
 void __fastcall FormShow(TObject *Sender);
 void __fastcall btnCancelarClick(TObject *Sender);
 void __fastcall BtnConfirmaClick(TObject *Sender);
 void __fastcall BitBtn4Click(TObject *Sender);
 void __fastcall FormDestroy(TObject *Sender);
 void __fastcall DSRelCliAfterOpen(TObject *Sender);
 void __fastcall PHComboBox1Change(TObject *Sender);
 void __fastcall PHGridEdit1DblClick(TObject *Sender);
 void __fastcall CheckRegClick(TObject *Sender);
 void __fastcall BtnRelatorioClick(TObject *Sender);
 void __fastcall BtnGerarEtiquetasClick(TObject *Sender);
 void __fastcall PHEdit1Change(TObject *Sender);
private:	// User declarations
 void __fastcall LimpaTela(void);
 void __fastcall ProcessaConsulta(TObject *Sender);
 void __fastcall MarcarDesmarcar(bool Marca);
 bool __fastcall VerificaRegistroIndividuais(void);
 AnsiString __fastcall AbriuArquivoModelo(AnsiString Titulo, AnsiString Filtro);
 void __fastcall ExecutaLista(void);
 TStringList *ClientesFiltrados;
 TStringList *ListaErros;
 TLista *Clientes;
 TPHEtiqueta *Etiq;
 AnsiString ArquivoModeloEtiqueta;
 struct RELCLI *RCli;
public:		// User declarations
 __fastcall TDPRelClientes1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TDPRelClientes1 *DPRelClientes1;
//---------------------------------------------------------------------------
#endif
